package com.shop.resource.api;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.util.Map;

/**
 * @Description:
 *
 * @author zhoulk
 *
 * @date: 2019年05月08日  17:28
 */
@RequestMapping("/file")
public interface IFileApi {

    @PostMapping(value = "/uploadImg", produces = MediaType.APPLICATION_JSON_VALUE)
    Map<String,Object> uploadImgToQi(MultipartHttpServletRequest request);

    @GetMapping(value = "/test")
    Map<String,Object> test();

    @RequestMapping(value = "/getUploadToken", method = RequestMethod.GET)
    String getUploadToken();
}
